#include "mainwindow.h"

#include <QApplication>
#include <QCanBus>
#include <QMessageBox>

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    if(!QCanBus::instance()->plugins().contains("peakcan"))
    {
        QMessageBox::warning(new QWidget() ,"警告"," 'peakcan'插件不可用 ");
        return -1;
    }
    MainWindow w;
    w.show();

    return a.exec();
}
